# -*- coding: utf-8 -*-

import datetime

date1 = datetime.date(year=2019, month=8, day=6)
date2 = datetime.date(year=2019, month=8, day=1)
delta = date1 - date2
print(delta.days + 1)

t1 = "2019-08-06"
t2 = "2019-08-01"
d1 = datetime.datetime.strptime(t1, "%Y-%m-%d")
d2 = datetime.datetime.strptime(t2, "%Y-%m-%d")
delta = d1 - d2
print(delta.days + 1)



